package com.neusoft.service.impl;

import com.neusoft.domain.Business;
import com.neusoft.domain.Employee;
import com.neusoft.mapper.LoginMapper;
import com.neusoft.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginServiceImpl implements LoginService {
    @Autowired
    private LoginMapper loginMapper;
    @Override
    public Employee loginEmployee(Employee employee) {
        Employee resultE = loginMapper.loginEmployee(employee);
        if (resultE==null) {
            return null;
        }
        return resultE;
    }

    @Override
    public Business loginBusiness(Business business) {
        Business resultB = loginMapper.loginBusiness(business);
        if (resultB==null){
            return null;
        }
        return resultB;
    }
}
